package com.yolo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 霜蟾
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yolo_notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 通知编号
     */
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;

    /**
     * 标题
     */
    private String noticeTitle;

    /**
     * 类型(0:通知 1:公告)
     */
    private Integer noticeType;

    /**
     * 概要
     */
    private String summary;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy年MM月dd日", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 状态(0:未读 1:已读)
     */
    private Integer status;


}
